laravel 7 upload file s3

36

return Storage::disk('s3')->response('images/' . $image->filename);
$image = Image::create([
    'filename' => basename($path),
    'url' => Storage::disk('s3')->url($path)
]);
$path = $request->file('image')->store('images', 's3');

Comments

Submit
0 Comments